package com.example.kaogong.sys.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * @description: 密码重置传输对象
 * @author: 徐文升
 * @create: 2022-03-28 18:20
 **/

@Data
@EqualsAndHashCode
@ApiModel(value = "ResetPasswordDto对象", description = "密码重置传输对象")
public class ResetPasswordDto {

    @NotBlank(message = "旧密码不能为空")
    @ApiModelProperty(value = "旧密码", required = true)
    private String oldPassword;

    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty(value = "新密码", required = true)
    private String newPassword;

}
